//
//  NYSubjectModel.h
//  NiuWaJiaoYu
//
//  Created by MinLison on 2018/1/3.
//  Copyright © 2018年 niuwaketang. All rights reserved.
//

#import "BaseModel.h"
NS_ASSUME_NONNULL_BEGIN
/// 题目模型
@interface NYSubjectModel : BaseModel
/// 好题记录id
@property(nonatomic, copy) NSString *id;
/// 是否加入好题本(1-未加入，2-已加入)
@property(nonatomic, copy) NSString *is_good;
/// 是否已经做过（1-未做过，2-已做过）
@property(nonatomic, copy) NSString *is_test;
/// 对应后台两个字段type_id/genre 题目类型(1-练习题，2-自测卷，3-考试，4-杯赛考试)
@property(nonatomic, assign) NYGenreType genre;
/// 问题类型(1,单选，2-多选，3-填空)
@property(nonatomic, assign) NYQuestionType question_type;
/// 问题id
@property(nonatomic, copy) NSString *question_id;
/// 问题所属分类
@property(nonatomic, copy) NSString *question_nav;
/// 问题标题
@property(nonatomic, copy) NSString *question_title;
/// 内部处理，统一外部接口
/// 正确答案数组
@property(nonatomic, strong, nullable, readonly) NSArray <NSString *>* correct_answer_arr;
/// 题目答案数组
@property(nonatomic, strong, nullable, readonly) NSArray <NSString *>* exercises_answer_arr;
/// 错误答案数组
@property(nonatomic, strong, nullable, readonly) NSArray <NSString *>* wrong_answer_arr;
/// 全部答案类型
@property(nonatomic, assign) NYQuestionAnswerContentType exercises_answer_type;

/// 题目解析
@property(nonatomic, copy) NSString *explain_ex;
/// 记录时间戳
@property(nonatomic, copy) NSString *subtime;
/// 好题本key（重做时验证）
@property(nonatomic, copy) NSString *good_key;
/// 错题本 key
@property(nonatomic, copy) NSString *wrong_key;

////是否考试过（1、没有    2、考试过）
//@property(nonatomic, copy) NSString *is_test;

/// 用户答案 NSString NSArray NSDictionary
@property(nonatomic, nullable, copy) id user_answer;
@end
NS_ASSUME_NONNULL_END
